{{!< default}}

{{! The comment above "< default" means - insert everything in this file into
    the {body} of the default.hbs template, which contains our header/footer. }}

{{! Everything inside the #post tags pulls data from the post }}
<style type="text/css">

    @media (max-width:500px) {
        .post {
            margin-left: 0px;
            margin-right: 0px;
        }
    }

    @media (min-width:500px) {
        .post {
            padding: 40px;
        }
    }

    article a {
        color : #337ab7;
    }

    .post-content img {
        display: inline-block;
        max-width: 100%;
        height: auto;
        padding: 4px;
        line-height: 1.42857143;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        -webkit-transition: all .2s ease-in-out;
        -o-transition: all .2s ease-in-out;
        transition: all .2s ease-in-out;
    }


</style>


<div class="row ">

    <div class="col-md-8">
        {{#post}}

            <main class="content" role="main">
                <article class="{{post_class}}">

                    <header class="post-header">
                        <h1 class="post-title">{{title}}</h1>
                        <section class="post-meta">
                            <time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="YYYY年MM月DD日"}}</time> {{tags prefix=" 标签："}}
                        </section>
                    </header>

                    <section class="post-content">
                        {{content}}
                    </section>

                    <footer class="post-footer">

                        <!--{{! Everything inside the #author tags pulls data from the author }}-->
                        <!--{{#author}}-->

                            <!--{{#if image}}-->
                                <!--<figure class="author-image">-->
                                    <!--<a class="img" href="{{url}}" style="background-image: url({{image}})"><span class="hidden">{{name}}的头像</span></a>-->
                                <!--</figure>-->
                            <!--{{/if}}-->

                            <!--<section class="author">-->
                                <!--<h4><a href="{{url}}">{{name}}</a></h4>-->

                                <!--{{#if bio}}-->
                                    <!--<p>{{bio}}</p>-->
                                <!--{{else}}-->
                                    <!--<p>继续阅读此作者的<a href="{{url}}">更多文章</a>。</p>-->
                                <!--{{/if}}-->
                                <!--<div class="author-meta">-->
                                    <!--{{#if location}}<span class="author-location icon-location">{{location}}</span>{{/if}}-->
                                    <!--{{#if website}}<span class="author-link icon-link"><a href="{{website}}">{{website}}</a></span>{{/if}}-->
                                <!--</div>-->
                            <!--</section>-->

                        <!--{{/author}}-->

                        <section class="share">
                            <h4>分享此博文</h4>
                            {{! 以下代码使用的是百度分享(http://share.baidu.com/)，如需自定义，请自行到百度分享上定制并将代码粘贴到这里。}}
                            <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a><a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣网"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a></div>
                            <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"24"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
                            {{! 百度分享代码结束}}
                        </section>

                        <section class="post-comments">
                            <div class="ds-thread" data-thread-key="{{slug}}" data-title="{{{title}}}" data-url="{{url absolute="true"}}"></div>
                        </section>

                    </footer>

                </article>
            </main>

            <!--<aside class="read-next">-->
                <!--{{#next_post}}-->
                    <!--<a class="read-next-story {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}" href="{{url}}">-->
                        <!--<section class="post">-->
                            <!--<h2>{{title}}</h2>-->
                            <!--<p>{{excerpt words="19"}}&hellip;</p>-->
                        <!--</section>-->
                    <!--</a>-->
                <!--{{/next_post}}-->
                <!--{{#prev_post}}-->
                    <!--<a class="read-next-story prev {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}" href="{{url}}">-->
                        <!--<section class="post">-->
                            <!--<h2>{{title}}</h2>-->
                            <!--<p>{{excerpt words="19"}}&hellip;</p>-->
                        <!--</section>-->
                    <!--</a>-->
                <!--{{/prev_post}}-->
            <!--</aside>-->

        {{/post}}


        <!-- 多说公共JS代码 start (一个网页只需插入一次) -->
        <script type="text/javascript">
            var duoshuoQuery = {short_name:"coderdidi"};
            (function() {
                var ds = document.createElement('script');
                ds.type = 'text/javascript';ds.async = true;
                ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
                ds.charset = 'UTF-8';
                (document.getElementsByTagName('head')[0]
                || document.getElementsByTagName('body')[0]).appendChild(ds);
            })();
        </script>
        <!-- 多说公共JS代码 end -->
    </div>

    <div class="col-md-4">

        {{!作者信息}}
        {{>author_info}}

        {{!标签云}}
        {{tag_cloud}}


    </div>


</div>

